<template>
    <div id="">
        <button @click="exit">注销</button>
    </div>
</template>

<script>
export default {
    props: {

    },
    components: {

    },
    data() {
        return {

        }
    },
    methods: {
        exit() {
            sessionStorage.clear()
            this.$router.replace("/login")
            this.$toast.success("退出成功")
        }
    }
}
</script>

<style scoped></style>
